<?php
/**
 * log controller
 * 
 * @author raphael seebacher <raphasee@ee.ethz.ch>
 * @version 0.01
 */
class log_controller extends controller {
    protected static $log = NULL;

    /**
     * function to log events
     *
     * @static
     * @param string $str the string to be logged
     */
    public static function log($str) {
        if (self::$log == NULL) {
            self::$log = new log_text('../tmp/log.txt');
        }

        self::$log->log($str);
    }
}
?>